<?php

$xml =  $_REQUEST['text'];
$name = $_REQUEST['name'];

$dom = new DomDocument();


$dom->loadXML($xml);
$dom->save("memoxml/".$name.".xml");

?>